export const enum ModulationMode {
  FourQAM = 1,
  FourASK,
  FourFSK
}

type MimoArgs = {
  receiveAntennas: number
  modulationMode: ModulationMode
  noiseRate: number
}

export type MimoDecodeArgs = MimoArgs & {
  index: number
  bitStream: number
}

export type MimoPlotArgs = MimoArgs & {
  counts: number
}

export type MimoContent = {
  lab: 'mimo'
  decode?: {
    [key in number]: {
      args: MimoDecodeArgs
      result?: number
    }
  }
  plot?: {
    args: MimoPlotArgs
    result?: [number[], number[]]
  }
}
